<?php echo $this->fetch('inc/header.html'); ?> 
<?php
$this->_var['dpagecss'][] = $this->_var['TMPL_REAL']."/css/cart.css";
$this->_var['dpagejs'][] = $this->_var['TMPL_REAL']."/js/cart_pay.js";
$this->_var['dcpagejs'][] = $this->_var['TMPL_REAL']."/js/cart_pay.js";
?>
<link rel="stylesheet" type="text/css" href="<?php 
$k = array (
  'name' => 'parse_css',
  'v' => $this->_var['dpagecss'],
);
echo $k['name']($k['v']);
?>" />
<script type="text/javascript" src="<?php 
$k = array (
  'name' => 'parse_script',
  'v' => $this->_var['dpagejs'],
  'c' => $this->_var['dcpagejs'],
);
echo $k['name']($k['v'],$k['c']);
?>"></script>
<div class="blank"></div>

<div class="shadow_bg">
	<div class="wrap white_box"">
		<div class="page_title">
			<?php echo $this->_var['deal_info']['name']; ?>
			<div class="support_price">
				<input name="is_delivery" id="is_delivery" type="hidden" value="<?php echo $this->_var['deal_item']['is_delivery']; ?>" />
				<font class="delivery_fee">
				支持金额  ¥<?php echo $this->_var['deal_item']['price_format']; ?>			
				<?php if ($this->_var['deal_item']['is_delivery'] == 1): ?>				
				
					<?php if ($this->_var['deal_item']['delivery_fee'] != 0): ?>
					邮费:¥<?php echo $this->_var['deal_item']['delivery_fee_format']; ?>
					<?php else: ?>
					包邮
					<?php endif; ?>
				
				<?php endif; ?>
				</font>
				应付总额 <span>¥<?php echo $this->_var['deal_item']['total_price_format']; ?></span> 元	
			</div>
		</div>
		
		<div class="switch_nav" style="height:1px;"></div>
		
		<div class="blank"></div>
		
		<div class="public_left">
			
			<form class="pay_form" action="<?php
echo parse_url_tag("u:cart#go_pay|"."".""); 
?>" target="_blank" method="post">									
				
				<?php if ($this->_var['user_info']['money'] > 0): ?>
					<div class="form_row">
						<div class="blank15"></div>
						<label class="title">使用余额支付:</label>
						<input type="text" class="textbox" value="0" name="credit" style="width:100px;" />
						<label class="title" style="padding-left:10px;">可用余额：<?php 
$k = array (
  'name' => 'format_price',
  'v' => $this->_var['user_info']['money'],
);
echo $k['name']($k['v']);
?></label>
						<input type="hidden" name="max_credit" value="<?php echo $this->_var['user_info']['money']; ?>" />
						<input type="hidden" name="max_pay" value="<?php echo $this->_var['deal_item']['total_price']; ?>" />
						<div class="blank15"></div>
					</div>
				<?php endif; ?>
						
				<?php echo $this->_var['payment_html']; ?>
				
				<div class="blank"></div>
				<div>
					<div class="ui-button green" rel="green">
						<div>
							<span>确定，去付款</span>
						</div>
					</div>				
					<input type="hidden" id="back_url" value="<?php
echo parse_url_tag("u:account|"."".""); 
?>" />	
					<input type="hidden" value="<?php echo $this->_var['memo']; ?>" name="memo" />	
					<input type="hidden" value="<?php echo $this->_var['deal_item']['id']; ?>" name="id" />
					<input type="hidden" value="<?php echo $this->_var['consignee_id']; ?>" name="consignee_id" />	
					<input type="hidden" value="1" name="ajax" />					
					<div class="blank15"></div>
				</div>
				
			</form>
			
		</div><!--left-->
		<div class="public_right">
				
				<div class="deal_item_box">
					<div class="deal_content_box">
					<img  src="<?php if ($this->_var['deal_info']['image'] == ''): ?><?php echo $this->_var['TMPL']; ?>/images/empty_thumb.gif<?php else: ?><?php 
$k = array (
  'name' => 'get_spec_image',
  'v' => $this->_var['deal_info']['image'],
  'w' => '205',
  'h' => '160',
  'g' => '1',
);
echo $k['name']($k['v'],$k['w'],$k['h'],$k['g']);
?><?php endif; ?>" />
					<div class="blank"></div>
					<a href="<?php
echo parse_url_tag("u:deal#show|"."id=".$this->_var['deal_info']['id']."".""); 
?>" class="deal_title" title="<?php echo $this->_var['deal_info']['name']; ?>"><?php echo $this->_var['deal_info']['name']; ?></a>
					<div class="blank"></div>
					<a href="<?php
echo parse_url_tag("u:home|"."id=".$this->_var['deal_info']['user_id']."".""); 
?>"><?php echo $this->_var['deal_info']['user_name']; ?></a></a>&nbsp;&nbsp;(<span><a href="<?php
echo parse_url_tag("u:deals|"."loc=".$this->_var['deal_info']['province']."".""); 
?>" title="<?php echo $this->_var['deal_info']['province']; ?>"><?php echo $this->_var['deal_info']['province']; ?></a></span><span><a href="<?php
echo parse_url_tag("u:deals|"."loc=".$this->_var['deal_info']['city']."".""); 
?>" title="<?php echo $this->_var['deal_info']['city']; ?>"><?php echo $this->_var['deal_info']['city']; ?></a></span>)
					<div class="blank"></div>
					<div><?php echo $this->_var['deal_info']['brief']; ?></div>
					</div>
					<div class="deal_item_dash"></div>
					<div class="deal_content_box">
						<div class="ui-progress">
							<span style="width:<?php echo $this->_var['deal_info']['percent']; ?>%;"></span>
						</div>
						<div class="blank"></div>
						<div class="div3"><span class="num"><?php echo $this->_var['deal_info']['percent']; ?>%</span><span class="til">达到</span></div>
						<div class="div3"><span class="num" ><font><?php 
$k = array (
  'name' => 'round',
  'v' => $this->_var['deal_info']['support_amount'],
  'e' => '2',
);
echo $k['name']($k['v'],$k['e']);
?></font>元</span><span class="til">已获支持</span></div>
		
						<div class="div3">
							<?php if ($this->_var['deal_info']['begin_time'] > $this->_var['now']): ?>
							<span class="num">未上线</span>
							<span class="til">剩余时间</span>
							<?php elseif ($this->_var['deal_info']['end_time'] < $this->_var['now'] && $this->_var['deal_info']['end_time'] != 0): ?>
							<span class="num">已过期</span>
							<span class="til">剩余时间</span>
							<?php else: ?>
							<span class="num">
								<?php if ($this->_var['deal_info']['end_time'] == 0): ?>
								长期项目
								<?php else: ?>
								<font><?php echo $this->_var['deal_info']['remain_days']; ?></font>天
								<?php endif; ?>
							</span>
							<span class="til">剩余时间</span>
							<?php endif; ?>					
						</div>
				
						<div class="blank1"></div>
					</div>
				</div>
				
				
				
			</div>
		
		<div class="blank"></div>
		
	</div>
</div>
<div class="blank"></div>
<?php echo $this->fetch('inc/footer.html'); ?> 